import {
	request
} from "@/utils/request"

export const getUserOutPaginate = (params) => request({
	url: `Storehouse/getPartsOutboundSelect`,
	method: "GET",
	params,
})
export const getPartsCategoryPaginate = () => request({
	url: `member_parts/getPartsCategoryPaginate`,
	method: "GET"
})
//配件分类
export const getPartsApplyCategory = () => request({
	url: `Corpus/getPartsApplyCategory`,
	method: "GET"
})
// 库存列表
export const getUserStorehousePaginate = (params) => request({
	url: `member_parts/getUserPaginate`,
	method: "GET",
	params,
})
export const getUserStoreOrderProcurePaginate = (params) => request({
	url: `member_parts/getUserOrderProcurePaginate`,
	method: "GET",
	params,
})
export const postStoreOrderPurchaseStatus = (data) => request({
	url: `Storehouse/postOrderPurchaseStatus`,
	method: "POST",
	data,
})
export const getStoreOrderPurchaseStatusPaginate = () => request({
	url: `Storehouse/getOrderPurchaseStatus`,
	method: "GET",
})
// 配件申领列表
export const getPartsApplyLogList = (params) => request({
	url: `Corpus/getPartsApplyLogList`,
	method: "GET",
	params,
})
// 个人积分
export const getUserMonthInfo = (params) => request({
	url: `workerdata/getUserMonthInfo`,
	method: "GET",
	params,
})
// 我的客户 or 返利
export const getUserList = (url, params) => request({
	url,
	method: "GET",
	params,
})
// 返利头部统计
export const getRebateCount = (params) => request({
	url: `workerdata/getRebateCount`,
	method: "GET",
	params,
})
// 返利头部统计
export const getRebateOrderList = (params) => request({
	url: `workerdata/getRebateOrderList`,
	method: "GET",
	params,
})
export const getTeamInfo = (params) => request({
	url: `workerdata/getTeamInfo`,
	method: "GET",
	params,
})
export const getTeamList = (params) => request({
	url: `workerdata/getTeamList`,
	method: "GET",
	params,
})
export const getTeamFormConfig = (params) => request({
	url: `workerdata/getTeamFormConfig`,
	method: "GET",
	params,
})
export const getArticleSelect = (params) => request({
	url: `Article/getArticleSelect`,
	method: "GET",
	params,
})
export const getArticleInfo = (params) => request({
	url: `Article/getArticleInfo`,
	method: "GET",
	params,
})
export const getArticleViewShow = (params) => request({
	url: `Article/getArticleViewShow`,
	method: "GET",
	params,
	showLoading: false
})

export const paramsUrl = (url, params) => request({
	url,
	method: "GET",
	params,
})
export const memberGetFormInit = params => request({
	url: "Parts_Goods/getFormInit",
	method: "GET",
	params,
})
export const postCreate = data => request({
	url: "Parts_Goods/postCreate",
	method: "POST",
	data,
})

export const postPowerStatus = (key, data) => request({
	url: `/Parts_Goods/${key}`,
	method: "POST",
	data,
})
export const getResortCount = ( params) => request({
	url: `/Parts_Goods/getCount`,
	method: "GET",
	params,
})

export const getUserPayslip = (params) => request({
	url: `Workerdata/getUserPayslip`,
	method: "GET",
	params,
})

